package com.web.mapper;


import com.web.entity.PersonHealthInfo;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface PersonHealthInfoMapper {


    public PersonHealthInfo findByUserIdAndDate(PersonHealthInfo personHealthInfo);

    @MapKey("date")
    public List<Map<String ,Object>> countHealthInfo(@Param("userId") Integer userId);


    public void insert(PersonHealthInfo personHealthInfo);


}
